package xyz.scootaloo.draft.textbook.chapter3;

/**
 * @author flutterdash@qq.com
 * @since 2021/5/31 11:07
 */
public class P2 {

    public static void main(String[] args) {
        int sum = 0;
        for (int i = 1; i<=100; i += 2) {
            sum += i;
        }
        System.out.println(sum);
    }

}
